package cn.rcth.controller;

import cn.rcth.base.domain.Product;
import cn.rcth.base.msg.ResultMsg;
import cn.rcth.base.serivce.IDeliverySerivce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * 物流相关
 */
@Controller
public class DeliveryController {

    @Autowired
    private IDeliverySerivce deliverySerivce;

    /**
     * 查询物流
     */
    @RequestMapping(value = "/delivery/select", method = RequestMethod.GET)
    @ResponseBody
    public ResultMsg deliverySelect(Long orderId){
        String delivery = deliverySerivce.deliverySelect(orderId);
        return ResultMsg.successResult(delivery);
    }


}
